package com.training.java.core.inheritance;


	public class LapTop {
		
	    String 	modelNo;
		String 	systemType = "Windows 32 bit";
		String 	color;
		boolean hasWifi = true;
		boolean hasStarted;
		int		currentMemory;
	    String typeOfDocument;
		
	    
		// method 1- Starting the laptop
	    
		void start()	 
		 {
			if(hasStarted = true)
			{
				System.out.println(" System has started.");
			}
			else
			{
				System.out.println("System has not started.");
			}
		  }
		
		
		//method stop
		void stop()
		{
			if (hasStarted ==false)
			{
				System.out.println(" System has stoped.");
			}
			
		}
		
		 
		 // method2  increaseMemory will increase current Memory.Returning the CurrentMemory value after increasing the memory.
		
		int increaseMemory(int howmuchMemory)	 
		 
		 {
			currentMemory = currentMemory + howmuchMemory;		
			return currentMemory;
		 }
		 	
		 
		 // method3  find out if the wifi is connected or not
		 void browse()
		 {
			 if (hasWifi == true)
			 {
				System.out.println("Network has connected,You can browse now.");
			 }
			 
			 else
				 
			 {
				 System.out.println("Network has not connected,You can't browse."); 
			 }
		 }
		
		 
		 
		 // method4 to give instructions to install JDK software according to system type.
		 
		 void installingJdkSoftware()
		 {	 
				if (systemType =="Windows 32 bit")
				{
					System.out.println("Install JDK 1.7 for Windows 32 bit O/S .System Type is  " + systemType);
				}
				else if (systemType =="Windows 64 bit")
				{
					System.out.println("Install JDK 1.7 for Windows 64 bit  O/S System Type is  " + systemType);
				}
				
				else if (systemType =="Mac")
				{
					System.out.println("Install JDK 1.7 for Mac O/S System Type is  " + systemType);
				}
				else 

				{
					System.out.println("Invalid System Type System  " + systemType);
				}
		 }
		 
		 
		 
		 // method to print the documents
		 //
		 
		 
		 void  PrintDocuments(String typeOfDocument) {

				{
					
					switch (typeOfDocument) {
					case "TAX":
						System.out.println("Type of documents:  "+typeOfDocument);
						break;
					case "PROPERTY":
						System.out.println("Type of documents:  "+typeOfDocument);
						break;
					case "ADDMISSION":
						System.out.println("Type of documents:  "+typeOfDocument);
						break;
					case "LEASE":
						System.out.println("Type of documents:  "+typeOfDocument);
						break;

					default:

						System.out.println("Invalid Case, Please Select Valid Type of documents");
					}
				}
	}
	}
		 
		
		 



